<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>异清轩博客管理系统</title>
    <link rel="stylesheet" type="text/css" href="{{asset('css/admin/bootstrap.min.css')}}">
    <link rel="stylesheet" type="text/css" href="{{asset('css/admin/style.css')}}">
    <link rel="stylesheet" type="text/css" href="{{asset('css/admin/login.css')}}">
    <link rel="stylesheet" type="text/css" href="{{asset('css/admin/font-awesome.min.css')}}">
    <link rel="apple-touch-icon-precomposed" href="{{asset('images/admin/icon/icon.png')}}">
    <link rel="shortcut icon" href="{{asset('images/admin/icon/favicon.ico')}}">
</head>

<body class="user-select">
<div class="container">
    <div class="siteIcon"><img src="images/icon/icon.png" alt="" data-toggle="tooltip" data-placement="top" title="欢迎使用异清轩博客管理系统" draggable="false" /></div>
    <form action="{{ route('login') }}" method="post" autocomplete="off" class="form-signin">
        @csrf
        <h2 class="form-signin-heading">后台登录</h2>
        <label for="email" class="sr-only">用户名</label>
        <input id="email" type="email" name="email" class="form-control"value="{{ old('email') }}" placeholder="请输入用户名" autofocus autocomplete="off" required maxlength="10">
        <label for="password" class="sr-only">密码</label>
        <input id="password" type="password" name="password" class="form-control" placeholder="请输入密码" required autocomplete="off" maxlength="18">
        <input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
        <a href="main.html"><button class="btn btn-lg btn-primary btn-block" type="submit" id="signinSubmit">登录</button></a>
    </form>
    {{--<form method="POST" action="{{ route('login') }}">--}}
        {{--@csrf--}}

        {{--<div class="form-group row">--}}
            {{--<label for="email" class="col-sm-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>--}}

            {{--<div class="col-md-6">--}}
                {{--<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ old('email') }}" required autofocus>--}}

                {{--@if ($errors->has('email'))--}}
                    {{--<span class="invalid-feedback" role="alert">--}}
                                        {{--<strong>{{ $errors->first('email') }}</strong>--}}
                                    {{--</span>--}}
                {{--@endif--}}
            {{--</div>--}}
        {{--</div>--}}

        {{--<div class="form-group row">--}}
            {{--<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>--}}

            {{--<div class="col-md-6">--}}
                {{--<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" required>--}}

                {{--@if ($errors->has('password'))--}}
                    {{--<span class="invalid-feedback" role="alert">--}}
                                        {{--<strong>{{ $errors->first('password') }}</strong>--}}
                                    {{--</span>--}}
                {{--@endif--}}
            {{--</div>--}}
        {{--</div>--}}

        {{--<div class="form-group row">--}}
            {{--<div class="col-md-6 offset-md-4">--}}
                {{--<div class="form-check">--}}
                    {{--<input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>--}}

                    {{--<label class="form-check-label" for="remember">--}}
                        {{--{{ __('Remember Me') }}--}}
                    {{--</label>--}}
                {{--</div>--}}
            {{--</div>--}}
        {{--</div>--}}

        {{--<div class="form-group row mb-0">--}}
            {{--<div class="col-md-8 offset-md-4">--}}
                {{--<button type="submit" class="btn btn-primary">--}}
                    {{--{{ __('Login') }}--}}
                {{--</button>--}}

                {{--<a class="btn btn-link" href="{{ route('password.request') }}">--}}
                    {{--{{ __('Forgot Your Password?') }}--}}
                {{--</a>--}}
            {{--</div>--}}
        {{--</div>--}}
    {{--</form>--}}
    <div class="footer">
        <p><a href="index.html" data-toggle="tooltip" data-placement="left" title="不知道自己在哪?">回到后台 →</a></p>
    </div>
</div>
<script src="{{ asset('static/toastr/toastr.js') }}"></script>
<script>
    @if ($errors->any())
        @foreach ($errors->all() as $error)
            toastr.error("{{$error}}")
        @endforeach
    @endif
</script>
</body>
</html>
